package main


import (
"fmt"
"net/http"
"io"
"log"
//"reflect"
)

var helloHandler = func(w http.ResponseWriter, req *http.Request) {
        io.WriteString(w, "Hello, world!\n")
}

func main(){

   http.HandleFunc("/hello", helloHandler)
   
   log.Fatal(http.ListenAndServe(":8080", nil))

   fmt.Println("ok")
   

}
